
.scan {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    &-box {
        width: 300px;
        height: 300px;
        background-color: #000000;
        position: relative;

        .frame {
            position: absolute;
            width: 20px;
            height: 20px;
            border: 3px solid transparent;
        }

        &-one {
            top: 0;
            left: 0;
            border-left-color: rgba(66, 133, 244, 1) !important;
            border-top-color: rgba(66, 133, 244, 1) !important;
        }

        &-two {
            top: 0;
            right: 0;
            border-right-color: rgba(66, 133, 244, 1) !important;
            border-top-color: rgba(66, 133, 244, 1) !important;
        }

        &-three {
            bottom: 0;
            right: 0;
            border-bottom-color: rgba(66, 133, 244, 1) !important;
            border-right-color: rgba(66, 133, 244, 1) !important;
        }

        &-four {
            bottom: 0;
            left: 0;
            border-left-color: rgba(66, 133, 244, 1) !important;
            border-bottom-color: rgba(66, 133, 244, 1) !important;
        }

        .pointer-box {
            width: 100%;
            height: 100%;
            overflow: hidden;

            .pointer {
                height: 3px;
                background-image: linear-gradient(to right,
                        transparent 0%,
                        rgba(66, 133, 244, 1) 50%,
                        transparent 100%,
                    );
                transform: translateY(-3px);
                animation: scan 2s linear infinite;
            }

            @keyframes scan {
                0% {
                    transform: translateY(-3px);
                }

                100% {
                    transform: translateY(400px);
                }
            }
        }

    }
    &-tip{
        color: #008000;
        font-size: 16px;
    }
    &-button{
        font-size: 16px;
        &>div{
            width: 16px;
            height: 16px;
            background-color: #008000;
        }
    }
    &-picture{
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
